<link rel="stylesheet" href="resources/weui/dist/style/weui.min.css"/>
<div style="background-color: white">
	<form action="index.php/JudgeDocument/judge_doc_list" method="post" id="judge_doc_form">
		<div class="weui_cells" style="margin-top: 0px;">
			<div class="weui_cell weui_cell_select weui_select_before">
				<div class="weui_cell_bd ">
					<label class="weui_label">法院</label>
				</div>
				<div class="weui_cell_hd weui_cell_primary">
					<select class="weui_select" name="cbfy" id="cbfy">
						<option value="" <?php if ($searchsel['cbfy']==''){
							echo "selected='selected'";
						} ?>>全部</option>
						<?php foreach($courts as $court): ?>
							<option value="<?php echo $court['id'] ?>"
							<?php
							if ($searchsel['cbfy']==$court['id']){
								echo "selected='selected'";
							}

							?>"><?php echo $court['courtname']?></option>
						<?php endforeach;?>
					</select>
				</div>
			</div>
		</div>
		<div class="weui_cells" style="margin-top: 0px;">
			<div class="weui_cell ">
				<div class="weui_cell_bd ">
					<label class="weui_label">案号</label>
				</div>
				<div class="weui_cell_hd weui_cell_primary">
					<input type="text" name="ah" id="ah" placeholder="" value="<?php
					echo $searchsel['ah'];
					?>"/>
					<div class="bd spacing" style="float: right">
						<a href="javascript:;" class="weui_btn weui_btn_mini weui_btn_primary" id="search_btn">搜索</a>
					</div>
				</div>

			</div>
		</div>

	</form>

	<div style="display: none" id="totalcount"><?php echo $judgedocs->total ?></div>
	<?php
	if (count($judgedocs->list)==0){ ?>
	<h3>暂时没有查询到相关信息！</h3>
	<?php }else{ ?>
	<ul class="list-group">
		<?php foreach ($judgedocs->list as $item):  ?>
			<a href="index.php/JudgeDocument/detail/<?php echo $item->DocumentId ?> " class="list-group-item" >
				<div class="row" style="margin-bottom: 10px;">
					<div >
						<div class="col-xs-3">
							<span>案件号</span>
						</div>
						<div class="col-xs-9">

							<span class="ah"><?php echo $item->AH ?></span>
						</div>
					</div>
					<div >
						<div class="col-xs-3">
							<span>结案日期</span>
						</div>
						<div class="col-xs-9">
							<div class="col-xs-11" style="padding-left: 0px">
								<?php echo $item->JARQ ?>
							</div>
							<div style="text-align:center;">
								<span class="glyphicon glyphicon-menu-right" aria-hidden="true"></span>
							</div>
						</div>
					</div>
				</div>
			</a>
		<?php endforeach; ?>
	</ul>
	<?php } ?>
	<div class="weui_cells" style="display: none" id="loadingInfo">
		<div  class="weui_cell">
			<div class="weui_cell_bd " >
				<p>数据加载中</p>
			</div>
		</div>
	</div>
</div>
<script src="resources/js/judge_doc_list.js"></script>